package org.gulugulubiao.utils;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class UrlValidatorUtil {
    private static final String WECHAT_ARTICLE_URL_REGEX = "^https:\\/\\/mp\\.weixin\\.qq\\.com\\/s\\/.*$";

    public static boolean isValidURL(String url) {
        Pattern pattern = Pattern.compile(WECHAT_ARTICLE_URL_REGEX);
        Matcher matcher = pattern.matcher(url);
        return matcher.matches();
    }
}
